<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://amc.af.mil/portal-el" prefix="portal" %>
<%@ taglib uri="http://amc.af.mil/radtaglibrary" prefix="rad" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html-el" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<html>
    <head>
        <title>Edit Model</title>
    </head>
    
    <body>

    <rad:useBean id="equipmentTypeViewHelper" />
<rad:useBean id="manufacturerViewHelper" />
<c:set var="itemModel" value="${requestScope.modelId}" />

<div id="portal-left-bar">
    <jsp:include page="../navigation/navigationMenu.jsp"/>
</div>

<div id="portal-content">
    <portal:box style="width:800px" title="Add Item Model">
        <html:form method="post" action="/editModelAction.do">
            <html:hidden property="modelId" />
            <p><label for="manufacturerId">Manufacturer</label>
            <html:select property="manufacturerId" >
                <html:optionsCollection name="manufacturerViewHelper"
                                        property="all"
                                        value="id"
                                        label="name"/>
            </html:select></p>
            <p><label for="equipmentTypeId">EquipmentType</label>
                <html:select property="equipmentTypeId">
                    <html:optionsCollection name="equipmentItemViewHelper"
                        property="all"
                        value="id"
                        label="name" />
                </html:select>
            </p>
            <p><label for="modelName">Name:</label><html:text property="modelName" /></p>
            <p><label for="modelName">Processor Speed:</label><html:text property="processorSpeed" /></p>
            <p><label for="modelName">Screen Size:</label><html:text property="screenSize" /></p>
            <p><html:submit value="Edit Model"/></p>
        </html:form>
    </portal:box>
</div>


    </body>
</html>